package com.atguigu.srb.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OrdinaryUser对象",description = "普通用户对象")
public class OrdinaryUser {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "普通用户ID", required = true, example = "1")
    @TableId(value = "ordinary_users_id", type = IdType.AUTO)
    private int ordinaryUsersId;

    @ApiModelProperty(value = "学号", required = true, example = "2024001")
    private String studentNumber;

    @ApiModelProperty(value = "姓名", required = true, example = "张三")
    private String fullName;

    @ApiModelProperty(value = "性别", required = true, example = "男")
    private String gender;

    @ApiModelProperty(value = "专业", required = true, example = "计算机科学")
    private String major;

    @ApiModelProperty(value = "入学年份", required = true, example = "2024")
    @TableField("enrollment_year_") // 指定数据库列名
    private String enrollmentYear;

    @ApiModelProperty(value = "所属二级学院", required = true, example = "信息学院")
    private String secondaryCollege;

    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}